<?php

namespace App\Http\Requests\API;

use App\Models\StaffOrg;
use InfyOm\Generator\Request\APIRequest;

class CreateStaffOrgAPIRequest extends APIRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'required',
            // 'fee_annual' => 'required',
            // 'fee_annual_oversize' => 'required',
            // 'fee_monthly' => 'required',
            // 'fee_monthly_oversize' => 'required',
        ];
    }

    public function messages(){
        return [
            'name.required'      => '组织名称不能为空',
            'fee_annual.required'           => '请设置七座以下车辆年卡费用',
            'fee_annual_oversize.required'  => '请设置七座以上车辆年卡费用',
            'fee_monthly.required'          => '请设置七座以下车辆月卡费用',
            'fee_monthly_oversize.required' => '请设置七座以上车辆月卡费用',
        ];
    }

}
